pragma Singleton
import QtQuick
import QtQuick3D
Item{
    id:root
    property url texRGBA:"./blocks-RGBA.png"
    property url texRGB:"./blocks-RGB.png"
    property url texAlpha:"./blocks-Alpha.png"

    property Texture textureRGBA:Texture{
        mipFilter: Texture.Nearest
        magFilter: Texture.Nearest
        source: texRGBA
    }

    property Texture textureRGB:Texture{
        mipFilter: Texture.Nearest
        magFilter: Texture.Nearest
        source: texRGB
    }

    property Texture textureAlpha:Texture{
        mipFilter: Texture.Nearest
        magFilter: Texture.Nearest
        source: texAlpha
    }

    property PrincipledMaterial materialBase:PrincipledMaterial{
        baseColorMap: textureRGB
        roughness: 1.0
    }

    property PrincipledMaterial materialAlpha:PrincipledMaterial{
        baseColorMap: textureRGBA
        alphaMode: PrincipledMaterial.Mask
        roughness: 1.0
    }

}
